add device_write() to the module