fix WriteFile bug for iocp