added handling for case where req mem is less than avail mem block