Can a 318 crank and rods be used in a 340?

yes..they will fit ...as you said everything has to be balanced