Add write methods to BufferedSocket