Issue with EEPROM Writing to all addresses

Can you please, post the complete program codes? There are many variables (say, inPin) in your program whose definitions are not there; therefore, it is difficult to test your exact case.