Sounds like you were doing everything right, or at least trying to. I know taking the lane can be scary, but it's a lot less scary than what happened to you. Screw up your courage, take the lane.
I know exactly how you feel, I dealt with an intersection/merge section exactly like this for months. Sucked. Well okay, not exactly, no one ever actually hit me.