A Comanchero bikie started drug dealing after he was assaulted by a rival motorcycle gang to repay a debt, a court heard.