Applying the weight to the mesh, but it shrinks when I rotate up
Looks like the hair vertices (which i suppose correctly weighted to the two rotated hair bones) are weighted also to some body bones.
To remove thoose unwanted weights enter edit mode, select all hair vertices, select all the body vertex groups (one by one) and click "remove" after every selection.

If this doesn't solver the problem, please upload your file.