fixed deletefile, implemented block recycling