You can't install two OSes on the same partition, there is likely an additional partition containing Ubuntu.  You should be able to boot into a Ubuntu rescue disk, remount the partitions as rw, run the chroot command and update grub.  That typically should fix boot.