Heavy-heavy-light quark potential in SU(3) lattice QCD