write implemented for PCF8574 devices.