Make write operation cancellation while it's in progress

.. which should be useful when writing a large buffer/file