Write piece by piece in huffman decoder