fix out-of-bounds bug in fs/dcache.c