writing in to a micro sd card without using serial function

If myFile is an instance of the File class, and points to an open file, yes, that will work.