bug 814010: diskcache: skip buffer when writing to file. r=michal.novotny