Before Write Data into EEPROM ..Just Erase the EEPROM then write the data.,
@Malik, this is emulated eeprom which is flash memory. Smallest amount to write is a Row which will be erased automatically before writing.
Reading from emulated eeprom is done easiest by assigning the address to a pointer of the underlying type.
I normally use a structure which contains additionally some housekeepign data as number of writes to eeprom and a "Magic Number" which indicates that the structure has been written at least once.