Update README.md

Fixed writing to file