Updated write() objects to return size_t for Arduino 1.0