writing of data via socket done