First, you don't mention which PIC you're using. Newer ones have a NVM Interrupt that can be used to set an interrupt when done writing to the EEPROM. Older ones need the GIE disabled when writing to the EEPROM. This might be a start.