Update Allocate.java

Incorporated checkpoint.save and restore/Testing still needed