Hoping all is well with the hardware, you need to break the addr part into 2 bytes.

I2cwrite SDA,SCL,CONTROL,I.HighByte, I.LowByte, [W0]

I use this in my design and it works correctly with a 24c512

Jerson