Update block_cache.c

Removal 'static' from cache_read and cache_write function.
Added 'inline' for cache_idx function.
Merge pull request #2 from vanvught/patch-1

Update block_cache.c