Adding a write deadline which effectively acts as a write timeout

Signed-off-by: Johannes Tuchscherer <jtuchscherer@pivotallabs.com>