Re-wrote file writting with NSOutputStream