Update Allocate.java

fixed Allocate constructor