Created eepromWrite function