This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Let's try to be a little more helpful, please, shall we guys?
If you call write() and pass an int, than it's the corresponding character code, not a human-readable version, of the String that's going to go into the file.
The class "PrintWriter" is designed to render human-readable text, and it has lots of overloaded "print" methods that do what you want. So in your original code, change "BufferedWriter" to "PrintWriter", and change "write()" to "print()", and your program will work as you expected!