Write data only when no storage operations are pending