[kernel] Fix block copying in the cache