Ditched unused variable
Added disk write interface which keeps track of the current block