Bāʾ in katabtu bi-l-qalami is instrumental.

Additional Particles: Seven Forms, Emphasis and Syntactic Case