Man allegedly uses sledgehammer to attack roommate