added file creation function
added more debug ouput to SDcard_write_block