add write file inside sdcard

#issue
make the whole system not functioning