write in external storage