Handle writable in TCP