Update block_cache.c

Removal 'static' from cache_read and cache_write function.
Added 'inline' for cache_idx function.