BUGFIX #3: support async usage

In order for the 'end' event to be passed, the stream needs to be resumed first and then, since we're writing only a single file, we need to use the 'end' method instead of 'write' so that the stream is closed and pipes now we're done.