When Allan fled and police caught him and searched his vehicle, they found $840 worth of BZP pills, $3495 cash, an imitation firearm with blank ammunition, and 19.5g of meth, 14.51g of which was pure.
Judge Cameron said the meth had an approximate street value of $19,000.
Allan was charged with possessing meth for supply, possessing BZP, and possessing an imitation weapon.
But in May, a search warrant at Allan's rural Feilding address revealed he was in possession of 22g of cannabis.
Police also discovered an electronic safe containing more meth, a pair of Nissan car keys, and $33,900 cash.
Police also found a car on the property that had been stolen in June 2012 and was valued at $36,430. The keys from the safe belonged to the car.
Allan has convictions from 1985-2013, Judge Cameron said.
A pre-sentence report showed Allan's remorse "appears to be based more on his having lost everything as a result of his offending rather than the consequences of his offending on others", Judge Cameron said.
Allan was a patched member of the Mothers Motorcycle Club at the time of the offending.
He pleaded guilty to the earlier charges, as well as charges for the second offending of possessing meth for supply, possessing cannabis, and receiving stolen property.
Judge Cameron began with a sentence of six years and three months, which was discounted for the guilty pleas, time spent on electronically monitored bail, and a 55 per cent discount for the forfeiture of Allan's property and its fixed chattels.
This brought the end sentence down to two years and one month of imprisonment.
"Even had I reached a level of 24 months, I wouldn't have granted home detention," Judge Cameron said.
He described the offending as "particularly serious" and said "anything short of imprisonment would send the wrong message".
He also ordered the forfeiture of the money found, and the destruction of the firearm, ammunition, and drug paraphernalia found during the search.