Can't save data in Arduino EEPROM

I upload the sketch using the bootloader instead the Pocket programmer and it works fine.

then, the pocket programmer clears the IC and rewrites it????

The example works fine but it's incorrect.
Then I have to tear apart the value (integer) in two bytes to save... and when I need to retrieve the value I need to call both bytes and "paste them" ???

How to do that ????