The device could potentially go to sleep if the write takes a long time. Blocking sleep using (if available) systemd-inhibit (or similar) will stop it suspending and wasting time for the user.