Is there an EEPROM.begin() in your setup()? You also need to tell it how much memory to use for EEPROM emulation.