Problem for reading and writting I2C Eeprom 24c02 6

If you have the 2 K bit device (that is, 256 bytes) then you won't fit more than 256 bytes into it, so naturally it wraps.