Thanks for query.
It seems that due to driving motorbike on bumpy your testicle might have injured and some erosion in your penile urethra
and get examined to rule out more damage to testicle.
Passing blood might be due to erosion in penile urethra.
I would suggest to take antibiotic medicine for few days.
Ok and bye.