callback for writeI2cBlock now gets 3 arguments