Written In Vain leads all the way in tough win at Tyers Park