Improved memory block release and flush