President Obama writes a note excusing a boy who missed class to see him speak