Update FileSystem.java

Added write