finish packed output stream write