Please refer to: 24C04 can write 16 bytes at a time. Automatic flipping over 16 bytes will clear the previously written ones. 24C02 can only write 8 bytes at a time. Your 24C04 program that writes 10 bytes at a time should run normally.
Hope it can be of reference to you