check for availability of write() function before trying to submit samples to the Flash shim (which may not yet be loaded)