fix a bug in the untar function

Fixes a bug I accidentally introduced; must call writeable.end on the fileStream otherwise weird things happen