Updated $.write() method to return the File that was written in the success Function.