I doubt you have hit a limit count, never heard of one for 16F or 18F PICs. You can always check the datasheet for your particular model. If there is a limit, it will be mentionned.

Totally wild guess, could this have anything to do with a write-protected chip? The first write went well and any further write is refused?

Robert