writeFailed

Mark a writing block as failed-to-write: it returns to free and the piece is locked (no more picks) until restorePiece is called. If the piece had already passed its hash check, that is undone and the have count restored. Mirrors write_failed.