More Cache Implementation

added in cache checking for diskwrite method and close method, still
need to do diskread method