Hi,
i had same problem, i do not calc in the write command:
a = B1.highbyte
b = B1.lowbyte
I2CWRITE sda, scl, add, loc, [a,b]
Ralf