For starters, you'll need an output stream to talk to the server. (Input streams can only read.) It's not hard to do, but it would explain why you can read and not write.
Theodore Jonathan Casser
SCJP/SCSNI/SCBCD/SCWCD/SCDJWS/SCMAD/SCEA/MCTS/MCPD... and so many more letters than you can shake a stick at!