It is very very unlikely that the meteor (not a meteorite as it did not hit the ground) was anywhere near your aircraft's altitude.
Most meteors burn up in the high high atmosphere - a lot higher than you are. As you state, it was difficult to see its altitude. At night the human eye cannot distinguish between a faint light up close and a bright light a long way away if they have the same apparent diameter.
The fact that the meteor you saw had sparks coming off it suggests that it was reasonably large (maybe the size of a marble) and therefore a long way away. Remember light travels in straight lines (for the purpose of this example) but your aircraft does not - it travels in a curve, at a constant distance from the Earth's surface. Had your aircraft travelled in a straight line (ie constantly climbing to a few hundred thousand feet) then the metoer may have been in your flight path. You would have to be pretty high.
I am not sure where you saw it, but if it was in or the US check the following website to see if others saw it.
<a href="http://www.amsmeteors.org/fireball/fireball_log.html" target="_blank">http://www.amsmeteors.org/fireball/fireball_log.html</a>