file write mutil thread