added comments and handled error for writeExtMem() in MyTasksStorage.java