Is it okay if I write a small paragraph to apologize for my my bad?
No not at all !! this might instead of giving you marks , even lead to negative marking. as you never even know the mood of the examiner. you will surely get what you deserve and if you have written relevant you surely do not need to worry about this.