Ballistic transport in one-dimensional loops with Rashba and Dresselhaus coupling