Write .msg of chunk to file