prevent non-writable socket write