Writing to the output buffer if compression is finished.