bugfix: mistake return value from send_buffer
same with SOCKET_DATA, when it is propagated to
skynet_socket_poll(), may crash the program
bugfix: missing FREE(buffer) when socket is closing
bugfix: close pending socket when write_buffer drain
explict return statement to suppress compiler warning
correct odd format style
Merge pull request #54 from kezhuw/fixes

Fixes