Black hole entropy in M theory