Ballarat drug dealer caught in Hamilton jailed