Double EEPROM memory entry Atmege 328p

I haven't an answer to your issue, but take the note...
The code below has a great chance to ruin an EEPROM in very short time, because you write the EEPROM unconditionally in endless loop.